/**
 * Copyright &copy; 2017-2020 <a href="http://www.fosung.com/">FosungFrame</a> All rights reserved.
 */
package com.fosung.frame.modules.personassessmentinfo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fosung.frame.common.persistence.Page;
import com.fosung.frame.common.service.CrudService;
import com.fosung.frame.modules.personassessmentinfo.entity.PersonAssessmentInfo;
import com.fosung.frame.modules.personassessmentinfo.dao.PersonAssessmentInfoDao;

/**
 * 党员考核积分设置Service
 * @author wu
 * @version 2017-08-30
 */
@Service
@Transactional(readOnly = true)
public class PersonAssessmentInfoService extends CrudService<PersonAssessmentInfoDao, PersonAssessmentInfo> {

	@Autowired
	private PersonAssessmentInfoDao dao;
	public PersonAssessmentInfo get(String id) {
		return super.get(id);
	}
	public PersonAssessmentInfo getSqcs(PersonAssessmentInfo personAssessmentInfo) {
		return dao.getSqcs(personAssessmentInfo);
	}
	public List<PersonAssessmentInfo> findList(PersonAssessmentInfo personAssessmentInfo) {
		return super.findList(personAssessmentInfo);
	}
	
	public Page<PersonAssessmentInfo> findPage(Page<PersonAssessmentInfo> page, PersonAssessmentInfo personAssessmentInfo) {
		return super.findPage(page, personAssessmentInfo);
	}
	
	@Transactional(readOnly = false)
	public void save(PersonAssessmentInfo personAssessmentInfo) {
		super.save(personAssessmentInfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(PersonAssessmentInfo personAssessmentInfo) {
		super.delete(personAssessmentInfo);
	}
	
	public List<PersonAssessmentInfo> queryListByOrganizationId(String organizationId){
		return dao.queryListByOrganizationId(organizationId);
	}
	
	public List<PersonAssessmentInfo> queryPersonAssessmentInfoList(PersonAssessmentInfo personAssessmentInfo){
		return dao.queryPersonAssessmentInfoList(personAssessmentInfo);
	}
}